package com.hanqian.kepler.core.entity.primary.core;

import com.hanqian.kepler.common.annotation.Flow;
import com.hanqian.kepler.common.base.entity.BaseEntity;
import com.hanqian.kepler.core.entity.primary.sys.Dict;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * new file
 * ======================================
 *
 * @author dzw
 * @date 2021/1/26 16:01
 * =======================================
 */
@Getter
@Setter
@Entity
@Table(name = "kepler_target_evaluate_detail")
public class TargetEvaluateDetail extends BaseEntity {

    /**
     * 指标评测主表
     */
    @ManyToOne(fetch = FetchType.LAZY)
    private TargetEvaluate targetEvaluate;

    /**
     * 评测类目
     */
    @ManyToOne(fetch = FetchType.LAZY)
    private Dict targetEvaluateTypeDict;

    /**
     * 分数
     */
    private int score;

}
